﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace AlbumDesigner.Models.Types
{
    public class ContactData
    {
        [Required(ErrorMessage = "יש להזין דוא\"ל")]
        [RegularExpression(@"\b[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}\b", ErrorMessage = "דוא\"ל לא תקין")]
        public string Email { get; set; }

        [Required(ErrorMessage = "יש להזין טקסט")]
        public string Text { get; set; }

        public int? AlbumId { get; set; }
    }
}